using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Material.DAL
{
    public interface IAccessor
    {
        string CommandText { get; set; }
        CommandType CommandType { get; set; }
        SqlCommand Command { get; }
        SqlDataAdapter DataAdapter { get; }
        SqlTransaction Transaction { get; }

        void Add(string name, object value);

        void CommitTransaction();
        void RollBackTransaction();
        void Close();
        void Clear();

        void WriteMessage(string message);
    }
}
